package yehang.shared.exception;

/**
 * token验证异常
 * @author davidbruce
 * @date 2021/11/18 下午7:00
 * @return
 */
public class TokenAuthException extends RuntimeException {

	private static final long serialVersionUID = -6014959869756051160L;

    public TokenAuthException(BizCodeEnume codeEnum) {
        super(codeEnum.getMsg());
    }

    public TokenAuthException(String message) {
        super(message);
    }

    public TokenAuthException(Throwable cause) {
        super(cause);
    }


    public TokenAuthException(String message, Throwable cause) {
        super(message, cause);
    }

    public TokenAuthException(String errorCode, String message, Throwable cause) {
        super("错误码【" + errorCode + "】" + "，错误信息【" + message + "】", cause);
    }
}
